import { createApp } from 'vue';
import App from './App.vue';
import axios from 'axios';
import router from './router';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import store from './store/store.js';  // 引入 Vuex store

// 设置 axios 基础路径
axios.defaults.baseURL = 'http://localhost:8080/api';  // 后端地址

const app = createApp(App);
app.config.globalProperties.$axios = axios; // 全局使用 axios
app.use(router).use(ElementPlus).use(store).mount('#app');


